﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace QUANLYCHAMCONG.PL.CMS
{
    public partial class Total : UserControl
    {
        private DataTable _dtData;

        public DataTable DtData
        {
            get { return _dtData; }
            set { _dtData = value; }
        }
        public Total()
        {
            InitializeComponent();
        }
        public void Settext()
        {
            try
            {
                if (_dtData.Rows.Count > 0)
                {
                    lbsonv.Text = DtData.Rows[0]["TONGNV"].ToString();
                    label4.Text = DtData.Rows[0]["TONGPB"].ToString();
                    label6.Text = DtData.Rows[0]["TONGNVCOMAT"].ToString();
                    label8.Text = DtData.Rows[0]["TONGNVVANG"].ToString();
                    label10.Text = DtData.Rows[0]["TONGDICONTAC"].ToString();
                    label12.Text = DtData.Rows[0]["TONGVT"].ToString();
                  
                }
            }
            catch 
            {
                return;
            }
        }
    }
}
